<?php

require_once 'Base.php';

class richieste_utenti
{

    private $tabella = 'richieste_utenti';

    function GET($matches)
    {
        $query_filter = null;
        if ($matches['id_richiesta'] && $matches['id_utente']) {
            $query_filter = array('id_richiesta' => $matches['id_richiesta'], 'id_utente' => $matches['id_utente']);
        }
        modello_base::GETresponse($this->tabella, $query_filter);
    }

    function PUT($matches)
    {
        $query_filter = null;
        if ($matches['id_richiesta'] && $matches['id_utente']) {
            $query_filter = array('id_richiesta' => $matches['id_richiesta'], 'id_utente' => $matches['id_utente']);
        }
        modello_base::PUTresponse($this->tabella, $query_filter);
    }

    function DELETE($matches)
    {
        $query_filter = null;
        if ($matches['id_richiesta'] && $matches['id_utente']) {
            $query_filter = array('id_richiesta' => $matches['id_richiesta'], 'id_utente' => $matches['id_utente']);
        }
        modello_base::DELETEresponse($this->tabella, $query_filter);
    }
}

?>